home *** CD-ROM | disk | FTP | other *** search
/ Mac-Source 1994 July / Mac-Source_July_1994.iso / C and C++ / System / Sample 2.4 Think C distribution / rpp.h < prev    next >
Text File  |  1990-07-09  |  1KB  |  52 lines

  1. /*______________________________________________________________________
  2.  
  3.     rpp.h - Report Printing Module Interface.
  4.     
  5.     Copyright © 1988, 1989, 1990 Northwestern University.  Permission is granted
  6.     to use this code in your own projects, provided you give credit to both
  7.     John Norstad and Northwestern University in your about box or document.
  8. _____________________________________________________________________*/
  9.  
  10. #ifndef __rpp__
  11. #define __rpp__
  12.  
  13. #include    <PrintMgr.h>
  14.  
  15. typedef void (*rpp_UpdateAll)(void);
  16.  
  17. typedef struct rpp_PrtBlock {
  18.     THPrint                hPrint;
  19.     short                    fontNum;
  20.     short                    fontSize;
  21.     short                    topMargin;
  22.     short                    botMargin;
  23.     short                    leftMargin;
  24.     short                    rightMargin;
  25.     Boolean                reverseOrder;
  26.     Boolean                header;
  27.     char                    *title;
  28.     short                    titleSep;
  29.     short                    titleFont;
  30.     short                    titleStyle;
  31.     short                    titleSize;
  32.     char                    *titleTmpl;
  33.     char                    *docName;
  34.     short                    dlogID;
  35.     short                    tabConID;
  36.     short                    emptyPageRangeID;
  37.     short                    ditlID;
  38.     short                    sizeRangeID;
  39.     short                    marginsTooBigID;
  40.     short                    truncateRightID;
  41.     short                    truncateBottomID;
  42.     short                    minFontSize;
  43.     short                    maxFontSize;
  44.     Boolean                menuPick;
  45.     rpp_UpdateAll        updateAll;
  46. } rpp_PrtBlock;
  47.  
  48. extern OSErr rpp_Print (Handle repHandle, Boolean printOne, rpp_PrtBlock *p);
  49. extern OSErr rpp_StlDlog (rpp_PrtBlock *p, Boolean *canceled);
  50.  
  51. #endif
  52.